MailPoet\API\JSON\API S

Total Complexity 50
Dependencies 19
Dependents 7
Total lines 289
Lines of code 206
Logical lines of code 90
Comment lines 20
Methods 14
Properties 15

Methods 14

Method Rating Maintainability Complexity Lines of code
setRequestData()
A
43 15 48
processRoute()
A
44 13 43
setupAjax()
S
53 6 20
createErrorResponse()
S
56 2 20
__construct()
S
60 2 14
logError()
S
62 2 11
init()
S
59 1 18
validatePermissions()
S
72 2 5
addEndpointNamespace()
S
74 2 4
setTokenAndAPIVersion()
S
65 1 10
addTokenToHeartbeatResponse()
S
76 1 4
getEndpointNamespaces()
S
82 1 3
getRequestedEndpointClass()
S
82 1 3
getRequestedAPIVersion()
S
82 1 3